export const setStorageSync = (key, val) => {
  return wx.setStorageSync(key, val)
}

export const getStorageSync = (key) => {
  return wx.getStorageSync(key)
}

export const successToast = (title = '加载成功') => {
  wx.showToast({
    title: title,
    icon: 'success'
  })
}

export function showModal (title = '', content = '') {
  wx.showModal({
    title,
    content,
    showCancel: false
  })
}
